package MemoryManager;

public class PCB {
    // 进程标识符
    int PID;
    // 进程起址
    int startLoc;
    // 对应进程所占空间
    int size;
    // 进程计数器
    int processCounter;

    // 构造
    public PCB(int PID, int startLoc, int size) {
        this.PID = PID;
        this.startLoc = startLoc;
        this.size = size;
        processCounter = 0;
    }

    

    public int getStartLoc() {
        return startLoc;
    }

    public void setStartLoc(int startLoc) {
        this.startLoc = startLoc;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getProcessCounter() {
        return processCounter;
    }

    public void setProcessCounter(int processCounter) {
        this.processCounter = processCounter;
    }

    public int getPID() {
        return PID;
    }

    public void setPID(int pID) {
        PID = pID;
    }
    
}
